const {navBar} = require('../public/statistic')
const { forest } = require('../public/statistic')
const { forestSet, oceanSet, kittySet }  = require('../database/index')
module.exports.nav =  (req,res) => {
    res.status(200).json({message:'success',success:true,data:navBar})
}
module.exports.forest = async (req,res) => {
    const data = await forestSet.find()
    res.status(200).json({message: 'success',success:true,data:data})
}

module.exports.ocean = async (req, res) => {
    const data = await oceanSet.find()
    res.status(200).json({message: 'success',success:true,data:data})
}
module.exports.kitty = async (req, res) => {
    const data = await kittySet.find()
    res.status(200).json({message: 'success',success:true,data:data})
}
